/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * For authoring Nightwatch tests, see
 * http://nightwatchjs.org/guide#usage
 */
 

module.exports = {
    'default e2e tests': function (browser) {

        // automatically uses dev Server port from /config.index.js
        // default: http://localhost:8080
        // see nightwatch.conf.js
        let devServer = browser.globals.devServerURL;
        const WAIT = 5000;

        browser
            .url(devServer)
            .waitForElementVisible('#app', WAIT)
            .assert.elementPresent('.hello')
            .assert.containsText('h1', 'Welcome to Your Vue.js App')
            .assert.elementCount('img', 1)
            .end();
    }
};
